package whf.shop.service;

import java.util.List;

import whf.framework.exception.DAOException;
import whf.framework.exception.FindException;
import whf.framework.exception.UpdateException;
import whf.shop.entity.Currency;

/**
 * 服务对象接口
 * 
 * @author wanghaifeng
 * @email king@126.com
 * @modify 2007-01-11
 */
public interface CurrencyService extends whf.framework.service.Service<Currency> {

	/**
	 * 搜索基本货币
	 * @modify wanghaifeng Jan 12, 2007 9:25:30 AM
	 * @return
	 * @throws FindException
	 */
	public Currency findBaseCurrency() throws FindException;
	
	/**
	 * 搜索非基本货币
	 * @modify wanghaifeng Jan 12, 2007 9:46:36 AM
	 * @return
	 * @throws FindException
	 */
	public List<Currency> findNonBaseCurrency() throws FindException;
	
	/**
	 * 搜索所有有效货币
	 * @modify wanghaifeng Jan 12, 2007 9:29:38 AM
	 * @return
	 * @throws FindException
	 */
	public List<Currency> findEffectiveCurrencies() throws FindException;

	/**
	 * 更改基本货币
	 * @modify wanghaifeng Jan 12, 2007 9:31:04 AM
	 * @param newBaseCurrency 将被设置成新的基本货币的货币
	 * @throws DAOException
	 */
	public void changeBaseCurrency(Currency newBaseCurrency) throws FindException, UpdateException;
}